package com.xq.domain;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.ArrayList;
import java.util.Date;

public class Order {

    private String oid;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date otime;
    private Integer yid;
    private String cangku;
    private String kuwei;
    private String orderer;
    private double gross;
    private double rebate;
    private String way;
    private String odd;
    private double chengben;
    private String dizhi;

    public ArrayList<Product> getList() {
        return list;
    }

    public void setList(ArrayList<Product> list) {
        this.list = list;
    }

    private ArrayList<Product> list;


    public Order(String oid, Date otime, Integer yid, String cangku, String kuwei, String orderer, double gross, double rebate, String way, String odd, double chengben, String dizhi, String beizhu, Yuser yuser, String mohu, String mohu1, String zhi, String zhi1, Date otime1, String pai) {
        this.oid = oid;
        this.otime = otime;
        this.yid = yid;
        this.cangku = cangku;
        this.kuwei = kuwei;
        this.orderer = orderer;
        this.gross = gross;
        this.rebate = rebate;
        this.way = way;
        this.odd = odd;
        this.chengben = chengben;
        this.dizhi = dizhi;
        this.beizhu = beizhu;
        this.yuser = yuser;
        this.mohu = mohu;
        this.mohu1 = mohu1;
        this.zhi = zhi;
        this.zhi1 = zhi1;
        this.otime1 = otime1;
        this.pai = pai;
    }

    private String beizhu;

    public String getBeizhu() {
        return beizhu;
    }

    public void setBeizhu(String beizhu) {
        this.beizhu = beizhu;
    }

    private Yuser yuser;
    private String mohu;
    private String mohu1;
    private String zhi;
    private String zhi1;
    private String zhi2;

    public String getZhi2() {
        return zhi2;
    }

    public void setZhi2(String zhi2) {
        this.zhi2 = zhi2;
    }

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date otime1;

    private String pai;

    @Override
    public String toString() {
        return "Order{" +
                "oid='" + oid + '\'' +
                ", otime=" + otime +
                ", yid=" + yid +
                ", cangku='" + cangku + '\'' +
                ", kuwei='" + kuwei + '\'' +
                ", orderer='" + orderer + '\'' +
                ", gross=" + gross +
                ", rebate=" + rebate +
                ", way='" + way + '\'' +
                ", odd='" + odd + '\'' +
                ", chengben=" + chengben +
                ", dizhi='" + dizhi + '\'' +
                ", yuser=" + yuser +
                ", mohu='" + mohu + '\'' +
                ", mohu1='" + mohu1 + '\'' +
                ", zhi='" + zhi + '\'' +
                ", zhi1='" + zhi1 + '\'' +
                ", otime1=" + otime1 +
                ", pai='" + pai + '\'' +
                '}';
    }

    public String getOid() {
        return oid;
    }

    public void setOid(String oid) {
        this.oid = oid;
    }

    public Date getOtime() {
        return otime;
    }

    public void setOtime(Date otime) {
        this.otime = otime;
    }

    public Integer getYid() {
        return yid;
    }

    public void setYid(Integer yid) {
        this.yid = yid;
    }

    public String getCangku() {
        return cangku;
    }

    public void setCangku(String cangku) {
        this.cangku = cangku;
    }

    public String getKuwei() {
        return kuwei;
    }

    public void setKuwei(String kuwei) {
        this.kuwei = kuwei;
    }

    public String getOrderer() {
        return orderer;
    }

    public void setOrderer(String orderer) {
        this.orderer = orderer;
    }

    public double getGross() {
        return gross;
    }

    public void setGross(double gross) {
        this.gross = gross;
    }

    public double getRebate() {
        return rebate;
    }

    public void setRebate(double rebate) {
        this.rebate = rebate;
    }

    public String getWay() {
        return way;
    }

    public void setWay(String way) {
        this.way = way;
    }

    public String getOdd() {
        return odd;
    }

    public void setOdd(String odd) {
        this.odd = odd;
    }

    public double getChengben() {
        return chengben;
    }

    public void setChengben(double chengben) {
        this.chengben = chengben;
    }

    public String getDizhi() {
        return dizhi;
    }

    public void setDizhi(String dizhi) {
        this.dizhi = dizhi;
    }

    public Yuser getYuser() {
        return yuser;
    }

    public void setYuser(Yuser yuser) {
        this.yuser = yuser;
    }

    public String getMohu() {
        return mohu;
    }

    public void setMohu(String mohu) {
        this.mohu = mohu;
    }

    public String getMohu1() {
        return mohu1;
    }

    public void setMohu1(String mohu1) {
        this.mohu1 = mohu1;
    }

    public String getZhi() {
        return zhi;
    }

    public void setZhi(String zhi) {
        this.zhi = zhi;
    }

    public String getZhi1() {
        return zhi1;
    }

    public void setZhi1(String zhi1) {
        this.zhi1 = zhi1;
    }

    public Date getOtime1() {
        return otime1;
    }

    public void setOtime1(Date otime1) {
        this.otime1 = otime1;
    }

    public String getPai() {
        return pai;
    }

    public void setPai(String pai) {
        this.pai = pai;
    }

    public Order(String oid, Date otime, Integer yid, String cangku, String kuwei, String orderer, double gross, double rebate, String way, String odd, double chengben, String dizhi, Yuser yuser, String mohu, String mohu1, String zhi, String zhi1, Date otime1, String pai) {
        this.oid = oid;
        this.otime = otime;
        this.yid = yid;
        this.cangku = cangku;
        this.kuwei = kuwei;
        this.orderer = orderer;
        this.gross = gross;
        this.rebate = rebate;
        this.way = way;
        this.odd = odd;
        this.chengben = chengben;
        this.dizhi = dizhi;
        this.yuser = yuser;
        this.mohu = mohu;
        this.mohu1 = mohu1;
        this.zhi = zhi;
        this.zhi1 = zhi1;
        this.otime1 = otime1;
        this.pai = pai;
    }

    public Order() {
    }


}
